
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:orientation/orientation.dart';
class JuBoAttention extends StatefulWidget {

  static final String routeName = 'attention';
  @override
  _JuBoAttentionState createState() => _JuBoAttentionState();
}

class _JuBoAttentionState extends State<JuBoAttention> {

  @override
  Widget build(BuildContext context) {
     return Scaffold(
      appBar: AppBar(
        title: Text('我的考勤'),
      ),
      body: test(),
    );
  }

  Widget test(){
    return Container(
        height:  100,
        width: 300,
        decoration: BoxDecoration(
          image: DecorationImage(
              image: NetworkImage('https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3412564135,1876356398&fm=26&gp=0.jpg'),
              fit: BoxFit.cover
          )
        ),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text('杭州聚玻科技',style: TextStyle(color: Colors.red),),
            Text('哈哈',style: TextStyle(color: Colors.red),)
          ],
        ),
    );
  }


}
